<?php
$uid1 = $_POST['uid1'];//关注对象
include ("conn.php");
$sql = "SELECT * FROM attention WHERE uid1=".(int)$uid1;
$result = $conn->query($sql);
$idolNum = $result->num_rows;
echo '{"idolNum":'.$idolNum.'}'
?>